mysql -u root -p
CREATE DATABASE wp_db DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;  # 支持emoji
CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'Wp@123456';  
GRANT ALL PRIVILEGES ON wp_db.* TO 'wp_user'@'localhost';  
FLUSH PRIVILEGES;  
EXIT;  
cd /data/web

wget https://cn.wordpress.org/latest-zh_CN.tar.gz

tar -zxvf latest-zh_CN.tar.gz
rm -f latest-zh_CN.tar.gz

chown -R nginx:nginx /data/web/wordpress
chcon -R -t httpd_sys_content_t /data/web/wordpress
chcon -R -t httpd_sys_rw_content_t /data/web/wordpress
ls -lZ /data/web
